$(function(){

    initTopSwiper();

    initMenuSwiper();

})

// swiper初始化 实现自动轮播
function initTopSwiper(){

    var swiper = new Swiper("#topSwiper", {
        loop: true,
        pagination:".swiper-pagination",
        autoplay : 3000
    })
}

// swiper初始化2
function initMenuSwiper(){

    var swiper = new Swiper("#swiperMenu", {
        slidesPerView: 3
    })
}